unit F_Export_Progress;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, cxControls, cxContainer, cxEdit, cxProgressBar, StdCtrls,
  ExtCtrls, Buttons;

type
  TFExportDocuments = class(TForm)
    Panel_Inferior: TPanel;
    SB_Cancelar: TBitBtn;
    Panel1: TPanel;
    Image: TImage;
    cxProgressBar: TcxProgressBar;
    StaticText: TStaticText;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure SB_CancelarClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    KeepExporting: Boolean;
  end;

var
  FExportDocuments: TFExportDocuments;

implementation

{$R *.dfm}

procedure TFExportDocuments.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  Action:= caFree;
end;

procedure TFExportDocuments.SB_CancelarClick(Sender: TObject);
begin
  KeepExporting:= False;
end;

procedure TFExportDocuments.FormCreate(Sender: TObject);
begin
  KeepExporting:= True;
end;

end.
